﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RequestFiles.aspx.cs" Inherits="FundRaising.GUI.Extensions.RequestFiles" MasterPageFile="~/GUI/RequestMasterPage.Master" %>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

        <div style="background-image: url('../pic/searchbg.png'); background-repeat: no-repeat; height: 43px;" 
                        dir="rtl"> 
                        <div style="float: right; width: 30px; height: 48px;"></div>
<div style="float: right; height: 52px; width: 732px;">
 
  <table style="width: 100%;" dir="rtl">
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td class="style8" align="left" dir="rtl">
                            קרן :&nbsp;
                        </td>
                <td class="style7">
                    <asp:Label ID="FundLabel" runat="server" Font-Underline="True" 
                        Text="Label"></asp:Label>
                </td>
                <td class="style9" colspan="2" align="left">
                            תחום:&nbsp;
                        </td>
                <td>
                    <asp:Label ID="DomainLabel" runat="server" Font-Underline="True" Text="Label"></asp:Label>
                </td>
                <td class="style5" dir="ltr">
                    : עמותה</td>
                <td class="style6">
                    <asp:Label ID="AssoLabel" runat="server" Text="Label" 
                        style="text-decoration: underline"></asp:Label>
                </td>
            <td>
                &nbsp;</td>
        </tr>
        
    </table>

    <asp:Label ID="RequestKey12" runat="server" Text="RequestKeyLabel" 
        Visible="False"></asp:Label>

  </div>
 
                    
                    </div>
                    
   <div>
   <br />
   <br />
   <table dir="rtl">
   <tr>
                        <td style="width: 249px">
                            &nbsp;</td>
                        <td style="width: 135px">
                            &nbsp;</td>
                        <td style="width: 112px">
                            &nbsp;</td>
                        <td style="width: 213px">
                            &nbsp;</td>
                        <td colspan="2">
	<asp:HyperLink runat="server" ID="ctrResult" Target="_blank" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 249px; color: #FF0000; text-decoration: underline;" 
                            align="left">
                            תיאור הקובץ</td>
                        <td colspan="3">
                <asp:TextBox ID="FileInfoTextBox" runat="server" Width="327px" Height="20px" 
                                
                                ToolTip="בשדה זה יש לרשום תיאור מילולי של הקובץ בכדי שיופע משהו בטבלת הארכיון"></asp:TextBox>
                        </td>
                        <td align="center" dir="rtl">
    
                <asp:FileUpload runat="server" ID="ctrFile" Font-Bold="False" Font-Italic="False" 
                                ToolTip="בחירת קובץ להעלה" Width="235px" /> 
                        </td>
                        <td>
                        
                            <asp:Button ID="btnUploadFile" runat="server" Text="שמור קובץ" Font-Bold="True" 
                                Font-Strikeout="False" Font-Underline="True" 
                                ToolTip="לחץ בכדי להעלות את הקובץ לשרת" 
                                onclientclick="alert('הוספת קובץ חדש התבצעה בהצלחה ')" />
	                    </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                
   
   
   </table>
   
   
   <table align="center" dir="rtl">
   <tr>
   <td style="width: 45px"></td>
   <td style="width: 202px">
   
       <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
           AllowSorting="True" AutoGenerateColumns="False" CellPadding="2" 
           DataKeyNames="FileId" DataSourceID="ObjectDataSource1" ForeColor="Black" 
           GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged" 
           style="margin-right: 0px" Width="741px" BackColor="LightGoldenrodYellow" 
           BorderColor="Tan" BorderWidth="1px">
           <Columns>
               <asp:TemplateField ShowHeader="False">
                   <EditItemTemplate>
                       <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                           CommandName="Update" Text="עדכן"></asp:LinkButton>
                       &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                           CommandName="Cancel" Text="בטל"></asp:LinkButton>
                   </EditItemTemplate>
                   <ItemTemplate>
                       <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                           CommandName="Edit" Text="ערוך"></asp:LinkButton>
                       &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                           CommandName="Select" Text="בחר"></asp:LinkButton>
                       &nbsp;<asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" 
                           CommandName="Delete" OnClientClick="return confirm('נא אשר מחיקה');"  Text="מחק"></asp:LinkButton>
                   </ItemTemplate>
               </asp:TemplateField>
               <asp:BoundField DataField="FileInfo" HeaderText="תיאור" 
                   SortExpression="FileInfo" />
               <asp:BoundField DataField="FileName" HeaderText="שם קובץ" ReadOnly="True" 
                   SortExpression="FileName" />
               <asp:BoundField DataField="FileSize" HeaderText="גודל" ReadOnly="True" 
                   SortExpression="FileSize" />
               <asp:BoundField DataField="FileId" HeaderText="FileId" ReadOnly="True" 
                   SortExpression="FileId" Visible="False" />
               <asp:BoundField DataField="FileType" HeaderText="FileType" ReadOnly="True" 
                   SortExpression="FileType" Visible="False" />
               <asp:BoundField DataField="RequestKey" HeaderText="RequestKey" ReadOnly="True" 
                   SortExpression="RequestKey" Visible="False" />
           </Columns>
           <FooterStyle BackColor="Tan" />
           <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
               HorizontalAlign="Center" />
           <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
           <HeaderStyle BackColor="Tan" Font-Bold="True" />
           <AlternatingRowStyle BackColor="PaleGoldenrod" />
       </asp:GridView>
   
       <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
           DeleteMethod="DeleteFileByFileId" SelectMethod="GetFileByRequestKey" 
           TypeName="FundRaising.BLL.RequestBLL" UpdateMethod="UpdateFileByFileId">
           <DeleteParameters>
               <asp:Parameter Name="FileInfo" Type="String" />
               <asp:Parameter DbType="Guid" Name="Original_FileId" />
               <asp:Parameter DbType="Guid" Name="FileId" />
           </DeleteParameters>
           <UpdateParameters>
               <asp:Parameter Name="FileInfo" Type="String" />
               <asp:Parameter DbType="Guid" Name="Original_FileId" />
               <asp:Parameter DbType="Guid" Name="FileId" />
           </UpdateParameters>
           <SelectParameters>
               <asp:ControlParameter ControlID="RequestKey12" DbType="Guid" Name="RequestKey" 
                   PropertyName="Text" />
           </SelectParameters>
       </asp:ObjectDataSource>
   
   </td>
   <td style="width: 358px"></td>
   
   
   </tr>
   
   </table>
   
   
   </div>

</asp:Content>
